import java.util.Scanner;
public class pingfang {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int n = in.nextInt();
        //挨个试
        for (int i = 0; i < n; i++) {
            //判断i是否是n的平方根
            if (i*i == n) {
                System.out.println(i);
                //break;
                break;
            }else if (i*i > n) {
                System.out.println((i-1)+"就是平方根的整数部分");
            }
        }
    }

}
